using Godot;
using System;

public partial class HeroAttackArea : Area2D
{
	// Called when the node enters the scene tree for the first time.
	public override void _Ready()
	{
		BodyShapeEntered += OnCollision;
	}

	private void OnCollision(Rid bodyRid, Node2D body, long bodyShapeIndex, long localShapeIndex)
	{
		GD.Print("进入这个区域了啦啦啦啦", body.Name, bodyShapeIndex, localShapeIndex);

	}

	// Called every frame. 'delta' is the elapsed time since the previous frame.
	public override void _Process(double delta)
	{
	}
}
